package com.vipheyue.lanjingapp;

import android.app.Application;

import com.vipheyue.lanjingapp.utils.CrashHandler;

import cn.bmob.push.BmobPush;
import cn.bmob.v3.Bmob;
import cn.bmob.v3.BmobInstallation;

/**
 * Created by heyue on 2015/11/9.
 */
public class MyApp extends Application  {
    @Override
    public void onCreate() {
        super.onCreate();
        Bmob.initialize(this, "0161692d54d0b215b4938208c30d4b3c");

        // 使用推送服务时的初始化操作
        BmobInstallation.getCurrentInstallation(this).save();
        // 启动推送服务
//        BmobPush.startWork(this, "0161692d54d0b215b4938208c30d4b3c");//正式环境
        BmobPush.startWork(this);//正式环境
        CrashHandler crashHandler = CrashHandler.getInstance();
        crashHandler.init(getApplicationContext());


    }


}
